package com.mrd.gtimp.sup.entity;


import com.mrd.gtimp.base.entity.User;

import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 * <p> application name: gtimp <p> copyright: Copyright@2012 明睿达科技有限公司
 */

/**
 * @author luob
 */
@Entity(name = "T_SUP_SALESMAN")
public class SupSalesMan implements Serializable {
    private static final long serialVersionUID = 1L;

    private String ID;
    private String COM_ID;
    private String NAME;
    private String SYS_ID;
    private String REMARK;
    private String CREATOR;
    private Date CTIME;
    private String MODIFIER;
    private Date MTIME;
    private User linkedUser;

    @Id
    @GeneratedValue(generator = "paymentableGenerator")
    @GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
    @Column(name = "ID")
    public String getID() {
        return ID;
    }

    public void setID(String iD) {
        ID = iD;
    }
    @Column(name = "COM_ID")
    public String getCOM_ID() {
        return COM_ID;
    }

    public void setCOM_ID(String cOM_ID) {
        COM_ID = cOM_ID;
    }
    @Column(name = "NAME")
    public String getNAME() {
        return NAME;
    }

    public void setNAME(String nAME) {
        NAME = nAME;
    }
    @Column(name = "SYS_ID")
    public String getSYS_ID() {
        return SYS_ID;
    }

    public void setSYS_ID(String sYS_ID) {
        SYS_ID = sYS_ID;
    }
    @Column(name = "REMARK")
    public String getREMARK() {
        return REMARK;
    }

    public void setREMARK(String rEMARK) {
        REMARK = rEMARK;
    }

    @Column(name = "CREATOR",updatable = false)
    public String getCREATOR() {
        return CREATOR;
    }

    public void setCREATOR(String cREATOR) {
        CREATOR = cREATOR;
    }

    @Column(name = "CTIME",updatable = false)
    public Date getCTIME() {
        return CTIME;
    }

    public void setCTIME(Date cTIME) {
        CTIME = cTIME;
    }
    @Column(name = "MODIFIER")
    public String getMODIFIER() {
        return MODIFIER;
    }

    public void setMODIFIER(String mODIFIER) {
        MODIFIER = mODIFIER;
    }
    @Column(name = "MTIME")
    public Date getMTIME() {
        return MTIME;
    }

    public void setMTIME(Date mTIME) {
        MTIME = mTIME;
    }

    @ManyToOne
    @JoinColumn(name = "ACCOUNT_ID")
    public User getLinkedUser() {
        return linkedUser;
    }

    public void setLinkedUser(User linkedUser) {
        this.linkedUser = linkedUser;
    }
}
